from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^$', 'webcontent.views_iphone.index'),
    
    # Board
    (r'^o/$', 'webcontent.views_index.index'),
    (r'^bn/$', 'webcontent.views_index.bn'),
    (r'^b/(?P<board_name>.*?)/$', 'webcontent.views_index.b'),
    # Board Posts
    (r'^bp/$', 'webcontent.views_index.bp1'),
    (r'^bp/(?P<board_name>.*?)/$', 'webcontent.views_index.bp2'),
    # Thread
    (r'^t/$', 'webcontent.views_index.t'),
    # Post
    (r'^p/$', 'webcontent.views_index.p'),
    # Configuration
    (r'^c/$', 'webcontent.views_index.c'),

    (r'^n/$', 'webcontent.views_iphone.index'),
    (r'^n/settings/$', 'webcontent.views_iphone.settings'),
    (r'^n/c/$', 'webcontent.views_iphone.config'),
    
    (r'^n/top10/$', 'webcontent.views_iphone.top10'),
    (r'^n/boards/$', 'webcontent.views_iphone.boards'),
    (r'^n/threads/$', 'webcontent.views_iphone.threads'),
    (r'^n/posts/$', 'webcontent.views_iphone.posts'),
    (r'^n/b/(?P<board_name>.*?)/$', 'webcontent.views_iphone.board'),
    (r'^n/bn/$', 'webcontent.views_iphone.bn'),
    (r'^n/post/$', 'webcontent.views_iphone.post'),
    (r'^n/tposts/$', 'webcontent.views_iphone.tposts'),
    (r'^n/tpost/$', 'webcontent.views_iphone.tpost'),
    
    # Admin
    (r'^admin/$', 'webcontent.views_index.admin'),
    
    #echo
    (r'^echo/$', 'webcontent.views_index.echo'),
	
	#View Point
	(r'^vp/boards/$', 'webcontent.views_viewpoint.boards'),
    (r'^vp/threads/$', 'webcontent.views_viewpoint.threads'),
    (r'^vp/posts/$', 'webcontent.views_viewpoint.posts'),
    (r'^vp/post/$', 'webcontent.views_viewpoint.post'),
    (r'^vp/boardinfo/$', 'webcontent.views_viewpoint.boardinfo'),
    (r'^vp/css/$', 'webcontent.views_viewpoint.css'),
    
    (r'^vp/deleteposts/$', 'webcontent.views_viewpoint.deleteposts'),
    (r'^vp/deleteboards/$', 'webcontent.views_viewpoint.deleteboards'),
    (r'^vp/boardsinfo/$', 'webcontent.views_viewpoint.boardsinfo'),
    (r'^vp/crawlingboards/$', 'webcontent.views_viewpoint.crawlingboards'),
    
    
    #iphone web
    (r'^w/$', 'webcontent.views_iphone_web.index'),
    (r'^w/top10/$', 'webcontent.views_iphone_web.top10'),
	(r'^w/boards/$', 'webcontent.views_iphone_web.boards'),
    (r'^w/threads/$', 'webcontent.views_iphone_web.threads'),
    (r'^w/posts/$', 'webcontent.views_iphone_web.posts'),
    (r'^w/post/$', 'webcontent.views_iphone_web.post'),
    
    #RSS
    (r'^rss/$', 'webcontent.views_rss.rss'),
    (r'^rss/add/$', 'webcontent.views_rss.add'),
    
	#Stanza
    (r'^stanza/$', 'webcontent.views_stanza.index'),
    (r'^stanza/threads/$', 'webcontent.views_stanza.threads'),
    (r'^stanza/posts/$', 'webcontent.views_stanza.posts'),
    (r'^stanza/post/$', 'webcontent.views_stanza.post'),
    (r'^stanza/add/$', 'webcontent.views_stanza.add'),
)
